from scrapy import cmdline
from scrapy.utils.project import get_project_settings
settings = get_project_settings()
print("host : %s" % (settings.get("MONGODB_HOST")))
cmdline.execute('scrapy crawl douban'.split())